package com.lncd.backend.repository;

import com.lncd.backend.model.GeoFence;
import com.lncd.backend.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GeoFenceRepository extends JpaRepository<GeoFence, Long> {
    List<GeoFence> findByCreator(User creator);
    List<GeoFence> findByTargetUser(User targetUser);
    List<GeoFence> findByCreatorAndActive(User creator, boolean active);
    List<GeoFence> findByTargetUserAndActive(User targetUser, boolean active);
} 